<template>
  <div id="detail_image">
    <img
      :src="item.img"
      alt=""
      v-for="(item, index) in img"
      :key="index"
      @load="image"
    />
  </div>
</template>

<script>
export default {
  name: "Detail_image",
  props: {
    img: {
      type: Array,
      default: [],
    },
  },
  methods: {
    image() {
      this.$emit("images")
    },
  },
}
</script>

<style lang="less" scoped>
#detail_image {
  img {
    width: 100%;
    vertical-align: middle;
  }
}
</style>
